package h_eekwan.basic;

public class J02_Math2Java {

	public static void main(String[] args) {
		// 1. 변수선언
		int x;
		int y;
		int z;
		int s;
		int s0;
		int v0;
		int t;
		int g;
		String Liner;
	
		Liner = "--------------------";
		x = 4;
		y = 3;
		z = 3;
		
		
		s0 = 3;
		v0 = 5;
		g = 2;
		t = 3;
		s=s0+v0*t+(1/2)*g*t*t;
		System.out.println("x=4\ty=3\tz=3");
		System.out.println(Liner);
		System.out.println("문제1.\t3x\t\t정답:"+3*x);
		System.out.println("문제2.\t3x+y\t\t정답:"+(3*x+y));
		System.out.println("문제3.\tx + y / 7\t정답:"+(x+y)/7);
		System.out.println("문제4.\t3x + y / z + x\t정답:"+(3*x+y)/(z+2));
		System.out.println(Liner);
		System.out.println(s);
		
		

	}

}
